﻿@model CommerceOne.Widgets.FilterNavigation.NavigationFilterViewModel
<div class="art-block">
    <div class="art-block-body">
        <div class="art-blockcontent">
            <div class="art-blockcontent-body">
                <div>
                    @if (Model != null && Model.BrandViewModel != null && Model.BrandViewModel.FilterItems != null)
                    {
                        <ul>
                            <li>Brand</li>
                            @foreach (var item in Model.BrandViewModel.FilterItems)
                            {
                                if (!string.IsNullOrEmpty(item.ItemLink))
                                {
                                <li><a href="@item.ItemLink">@item.ItemName (@item.ItemCount) </a></li>
                                }
                                else
                                {
                                <li>@item.ItemName (@item.ItemCount)<a href="/@Model.BrandViewModel.RemoveFilterItems.ItemLink">@Model.BrandViewModel.RemoveFilterItems.ItemName
                                </a></li>
                                }
                            }
                        </ul>
                        <ul>
                            <li>Category</li>
                            @foreach (var item in Model.CategoryViewModel.FilterItems)
                            {
                                if (!string.IsNullOrEmpty(item.ItemLink))
                                {
                                <li><a href="@item.ItemLink">@item.ItemName (@item.ItemCount) </a></li>
                                }
                                else
                                {
                                <li>@item.ItemName (@item.ItemCount)<a href="/@Model.BrandViewModel.RemoveFilterItems.ItemLink">@Model.BrandViewModel.RemoveFilterItems.ItemName
                                </a></li>
                                }
                            }
                        </ul>
                        <ul>
                            <li>Price</li>
                            @foreach (var item in Model.PriceViewModel.FilterItems)
                            {
                                if (!string.IsNullOrEmpty(item.ItemLink))
                                {
                                <li><a href="@item.ItemLink">@item.ItemName (@item.ItemCount) </a></li>
                                }
                                else
                                {
                                <li>@item.ItemName (@item.ItemCount)<a href="/@Model.PriceViewModel.RemoveFilterItems.ItemLink">@Model.PriceViewModel.RemoveFilterItems.ItemName
                                </a></li>
                                }
                            }
                        </ul>

                    }
                </div>
                <div class="cleared">
                </div>
            </div>
        </div>
        <div class="cleared">
        </div>
    </div>
</div>
